<template>
  <div>
    <div>
      <Modal
        v-model="DriverDetailsModal"
        title="驾驶员详情"
        width="900"
        @on-cancel="cancel"
        class="Modal-zindex"
      >
        <div class="demo-spin-article">
          <div class="DriverheaModalBox">
            <div class="Driverhead">
              <div class="headPorit">
                <span v-if="this.headPortrait != ''">
                  <img
                    @click="showPic(headPortrait)"
                    :src="this.headPortrait"
                    alt=""
                  />
                </span>
                <span v-else>
                  <img
                    :src="defaultAvatar"
                    alt=""
                    @click="showPic(defaultAvatar)"
                    srcset=""
                  />
                </span>
              </div>

              <div class="Driverheadcompany">
                <div class="Driverheadcompanyfont">
                  <span>{{ DriverInformationList.nickName }}</span>
                  <span style="margin-left: 6px; color: #999">{{
                    DriverInformationList.mobile
                  }}</span>
                  <p style="margin-top: 5px">
                    <samp style="color: #999"
                      >交易{{ DriverInformationList.relationship }}</samp
                    >
                    <samp style="margin-left: 6px; color: #999">
                      综合信用分{{ DriverInformationList.score }}</samp
                    >
                  </p>
                </div>
              </div>
              <div class="Driverheadbtn">
                <!-- <Button size="small"  style="background: #5CACEE">Primary</Button> -->
                <!-- 驾驶员 -->
              </div>
            </div>

            <!-- 线 -->
            <div class="BoxLine"></div>
            <!-- 详情 -->
            <div class="listDriver">
              <List
                :border="false"
                :split="false"
                header=""
                footer=""
                size="small"
              >
                <ListItem>
                  <span class="listDriverspan">认证状态</span>
                  <span class="listDriverval">{{
                    DriverInformationList.driverUserStatus == "0"
                      ? "未认证"
                      : DriverInformationList.driverUserStatus == "1"
                      ? "已认证"
                      : DriverInformationList.driverUserStatus == "2"
                      ? "审核中"
                      : DriverInformationList.driverUserStatus == "3"
                      ? "已过期"
                      : DriverInformationList.driverUserStatus == "4"
                      ? "已注销"
                      : ""
                  }}</span>
                </ListItem>
                   <ListItem>
                  <span class="listDriverspan">车老板</span>
                  <span class="listDriverval">{{
                    DriverInformationList.superiorName
                  }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">驾驶车辆</span>
                  <span class="listDriverval">{{
                    DriverInformationList.vehicleNum
                  }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">姓名</span>
                  <span class="listDriverval">{{
                    DriverInformationList.nickName
                  }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">身份证号码</span>
                  <span class="listDriverval">{{ IDCardNo }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">年龄</span>
                  <span class="listDriverval">{{ age }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">性别</span>
                  <span class="listDriverval">{{
                    DriverInformationList.sex
                  }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">驾龄</span>
                  <span class="listDriverval">{{ DrivingAge }}</span>
                </ListItem>

                <div style="width: 100%; height: 10px"></div>
                <ListItem>
                  <span class="listDriverspan">驾驶证编号</span>
                  <span class="listDriverval">{{ IDCardNo }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">驾驶证发证机关</span>
                  <span class="listDriverval">{{
                    DriverInformationList.issuingOrganizations
                  }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">准驾车型</span>
                  <span class="listDriverval">{{
                    DriverInformationList.driverType
                  }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">初次领证日期</span>
                  <span class="listDriverval">{{
                    DriverInformationList.issueDates
                  }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">驾驶证有效日期</span>
                  <span class="listDriverval">{{
                    DriverInformationList.startDate
                  }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">驾驶证结束日期</span>
                  <span class="listDriverval">{{
                    DriverInformationList.endDate
                  }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">驾驶证年检日期</span>
                  <span class="listDriverval">{{
                    DriverInformationList.yearlyInspectionDate
                  }}</span>
                </ListItem>
                <div style="width: 100%; height: 10px"></div>
                <ListItem>
                  <span class="listDriverspan">从业资格证号</span>
                  <span class="listDriverval">{{
                    IDCardNo
                  }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">资格证有效期</span>
                  <span class="listDriverval">{{
                    DriverInformationList.workLicenseExpiryTime
                  }}</span>
                </ListItem>
                <ListItem>
                  <span class="listDriverspan">诚信考核有效期</span>
                  <span class="listDriverval">{{
                    DriverInformationList.sincerityExpiryTime
                  }}</span>
                </ListItem>
              </List>
            </div>
            <!-- 线 -->
            <div class="BoxLine"></div>
            <!-- 照片 -->
            <div class="Driverheadl">
              <div class="Driverheadldiv">
                <div>
                  <div class="Driverheadlbnt" style="margin-left: 1.7rem">
                    <Button disabled style="width: 124px"> 身份证正面</Button>
                  </div>
                  <div class="Driverheadlimg" style="margin-left: 1.7rem">
                    <span v-if="this.FrontIDCardC != ''">
                      <img
                        @click="showPic(FrontIDCardC)"
                        :src="this.FrontIDCardC"
                        alt=""
                    /></span>
                  </div>
                </div>
                <div>
                  <div class="Driverheadlbnt">
                    <Button disabled style="width: 124px"> 身份证反面</Button>
                  </div>
                  <div class="Driverheadlimg">
                    <!-- <span> <img :src="this.ReverseSideIDSard" alt="" /></span> -->
                    <span v-if="this.ReverseSideIDSard != ''">
                      <img
                        @click="showPic(ReverseSideIDSard)"
                        :src="this.ReverseSideIDSard"
                        alt=""
                    /></span>
                  </div>
                </div>
                <div>
                  <div class="Driverheadlbnt">
                    <Button disabled style="width: 124px"> 驾驶证主页</Button>
                  </div>
                  <div class="Driverheadlimg">
                    <span v-if="this.FrontDriverLicense != ''">
                      <img
                        @click="showPic(FrontDriverLicense)"
                        :src="this.FrontDriverLicense"
                        alt=""
                    /></span>
                  </div>
                </div>
                <div>
                  <div class="Driverheadlbnt">
                    <Button disabled style="width: 124px"> 驾驶证副页</Button>
                  </div>
                  <div class="Driverheadlimg">
                    <span v-if="this.ReverseSideDriverDicense != ''">
                      <img
                        :src="this.ReverseSideDriverDicense"
                        @click="showPic(ReverseSideDriverDicense)"
                        alt=""
                    /></span>
                  </div>
                </div>
                <div>
                  <div class="Driverheadlbnt">
                    <Button disabled style="width: 124px"> 从业资格证</Button>
                  </div>
                  <div class="Driverheadlimg">
                    <span v-if="this.QualificationCertificate != ''">
                      <img
                        :src="this.QualificationCertificate"
                        @click="showPic(QualificationCertificate)"
                        alt=""
                    /></span>
                  </div>
                </div>
              </div>
            </div>
            <div class="Driverheadl">
              <div class="Driverheadldiv">
                <div>
                  <div class="Driverheadlbnt" style="margin-left: 1.7rem">
                    <Button disabled style="width: 130px"> 诚信考核情况</Button>
                  </div>
                  <div class="Driverheadlimg" style="margin-left: 1.7rem">
                    <span v-if="this.workBackLicensePicFileIdImg != ''">
                      <img
                        @click="showPic(workBackLicensePicFileIdImg)"
                        :src="this.workBackLicensePicFileIdImg"
                        alt=""
                    /></span>
                  </div>
                </div>
              </div>
            </div>

            <div style="width: 100%; height: 50px"></div>
            <!-- 线 -->
            <div class="BoxLine"></div>
            <!-- 详情 -->
            <!--  -->
            <!-- <div class="cummet-css">
              <Tabs
                v-model="certificates"
                @on-click="certificatesClick"
                type="card"
              >
                <TabPane label="收到评价" name="comment">
                  <Row>
                    <Table
                      size="default"
                      :loading="loading"
                      border
                      :columns="commentHeader"
                      :data="receivedEvaluationData"
                      sortable="custom"
                      ref="table"
                      class="table"
                    >
                    </Table>
                  </Row>
                  <Row type="flex" justify="end" class="page">
                    <Page
                      :current="searchForm.pageNumber"
                      :total="receivedEvaluationTable"
                      :page-size="searchForm.pageSize"
                      @on-change="changePage"
                      @on-page-size-change="changePageSize"
                      :page-size-opts="[10, 20, 50]"
                      size="small"
                      show-total
                      show-elevator
                      show-sizer
                    ></Page>
                  </Row>
                </TabPane>
                <TabPane label="收到投诉" name="complaint">
                  <Row>
                    <Table
                      size="default"
                      :loading="loading"
                      border
                      :columns="complaintHeader"
                      :data="receiveComplaintsData"
                      sortable="custom"
                      ref="table"
                      class="table"
                    >
                    </Table>
                  </Row>
                  <Row type="flex" justify="end" class="page">
                    <Page
                      :current="searchForm.pageNumberEvaluation"
                      :total="receiveComplaintsTabl"
                      :page-size="searchForm.pageSizeComplaints"
                      @on-change="receiveChangePage"
                      @on-page-size-change="receiveChangePageSize"
                      :page-size-opts="[10, 20, 50]"
                      size="small"
                      show-total
                      show-elevator
                      show-sizer
                    ></Page>
                  </Row>
                </TabPane>
              </Tabs>
            </div> -->
            <!-- 标签页 -->
            <!-- 线 -->
            <div class="BoxLine"></div>
            <div style="margin-top: 10px"></div>
          </div>
          <Spin size="large" fix v-if="spinShow"></Spin>
        </div>
        <div slot="footer"></div>
      </Modal>
    </div>
  </div>
</template>

<script>
import { getDriverInformation, complaintList, evaluateList } from "@/api/index";
import { getStore, setStore } from "@/libs/storage";
import defaultAvatar from "@/assets/customer.png";
export default {
  data() {
    return {
      spinShow: false,

      defaultAvatar: defaultAvatar, //默认头像
      DriverDetailsModal: this.driverModalue,
      DriverInformationList: {},
      BidderdUserId: this.BidderdUserId,
      header: {
        accessToken: getStore("accessToken"),
      },
      accessToken: getStore("accessToken"),
      FrontIDCardC: "", //身份证正面
      ReverseSideIDSard: "", //身份证反面
      FrontDriverLicense: "", //驾驶证主页
      ReverseSideDriverDicense: "", //驾驶证副页
      QualificationCertificate: "", //从业资格证
      workBackLicensePicFileIdImg: "", //从业资格证-副业
      headPortrait: "", //头像
      age: "", //年龄
      DrivingAge: "", //驾龄
      IDCardNo: "", //身份证号码
      QualificationCe: "", //资格证号
      certificates: "comment", //切换
      commentHeader: [
        {
          title: "托运单号",
          key: "orderNo",
          minWidth: 185,
          sortable: false,
        },
        {
          title: "综合评分",
          key: "praise",
          minWidth: 120,
          render: (h, params) => {
            if (params.row.transportationSafety >= 1) {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: parseInt(params.row.transportationSafety), //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
            } else {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: 0, //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
            }
          },
        },
        {
          title: "运输效率",
          key: "transportEfficiency",
          minWidth: 120,
          render: (h, params) => {
            if (params.row.transportEfficiency >= 1) {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: parseInt(params.row.transportEfficiency), //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
            } else {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: 0, //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
            }
          },
        },
        {
          title: "运输安全",
          key: "transportationSafety",
          minWidth: 120,
          render: (h, params) => {
            if (params.row.transportationSafety >= 1) {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: parseInt(params.row.transportationSafety), //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
            } else {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: 0, //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
            }
          },
        },
        {
          title: "服务质量",
          key: "serviceQuality",
          minWidth: 120,
          render: (h, params) => {
            if (params.row.serviceQuality >= 1) {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: parseInt(params.row.serviceQuality), //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
            } else {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: 0, //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
            }
          },
        },
        {
          title: "客户满意度",
          key: "customerSatisfaction",
          minWidth: 120,
          render: (h, params) => {
            if (params.row.customerSatisfaction >= 1) {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: parseInt(params.row.customerSatisfaction), //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
            } else {
              return h("div", [
                h("Rate", {
                  props: {
                    count: 5,
                    disabled: true,
                    allowHalf: true,
                    value: 0, //
                  },
                  style: {
                    margin: "0px",
                    padding: "0px",
                  },
                }),
              ]);
              // return h(
              //   "div",
              //   {
              //     style: {
              //       color: "#B0C4DE",
              //     },
              //   },
              //   "暂无评分"
              // );
            }
          },
        },
        {
          title: "时间",
          key: "createTime",
          minWidth: 170,
          sortable: false,
        },
      ],
      complaintHeader: [
        {
          title: "托运单号",
          key: "orderNo",
          minWidth: 190,
          sortable: false,
        },
        {
          title: "发起人",
          key: "name",
          minWidth: 120,
          sortable: false,
          render: (h, params) => {
            let cargoOwnerName = params.row.name;
            return h(
              "Tooltip",
              {
                props: {
                  placement: "top",
                  maxWidth: "220",
                  content: 15836357536,
                  transfer: true,
                },
              },
              cargoOwnerName
            );
          },
        },
        {
          title: "投诉类型",
          key: "problemType",
          minWidth: 135,
        },
        {
          title: "发起内容",
          key: "describes",
          minWidth: 190,
          sortable: false,
          render: (h, params) => {
            let cargoOwnerName = params.row.describes;
            return h(
              "Tooltip",
              {
                props: {
                  placement: "top",
                  maxWidth: "220",
                  content: params.row.describes,
                  transfer: true,
                },
              },
              cargoOwnerName
            );
          },
        },
        {
          title: "发起时间",
          key: "createTime",
          minWidth: 185,
          sortable: false,
        },
        {
          title: "结束时间",
          key: "updateTime",
          minWidth: 190,
          sortable: false,
        },
      ],
      data: [],
      receivedEvaluationData: [],
      receiveComplaintsData: [],
      receivedEvaluationTable: "0",
      receiveComplaintsTabl: "0",
      searchForm: {
        // 搜索框对应data对象
        pageNumber: 1, // 当前页数
        pageSize: 5, // 页面大小

        pageNumberEvaluation: 1, // 当前页数
        pageSizeComplaints: 5, // 页面大小
        sort: "", // 默认排序字段
        order: "", // 默认排序方式
        userId: "",
      },
    };
  },
  props: {
    driverModalue: {
      type: Boolean,
      default: false,
    },
    // data: {
    //   type: Object,
    // },
    BidderdUserId: {
      type: String,
      default: "",
    },
  },
  mounted() {},
  watch: {
    driverModalue(val) {
      this.setCurrentValue(val);
    },
    visible(value) {
      this.$emit("input", value);
    },
    BidderdUserId(val) {
      if (val != "") {
        this.BidderdUserId = val;
        this.getDataList();
        this.receivedEvaluation();
      }
    },
  },
  methods: {
    // 切换
    certificatesClick() {
      if (this.certificates == "comment") {
        this.receivedEvaluation();
        // 收到评价
      } else {
        this.receiveComplaints();
      }
    },
    // 关闭
    cancel() {
      this.$emit("DriverDetaEnd", this.DriverDetailsModal);
    },
    setCurrentValue(value) {
      this.FrontIDCardC = ""; //身份证正面
      this.ReverseSideIDSard = ""; //身份证反面
      this.FrontDriverLicense = ""; //驾驶证主页
      this.ReverseSideDriverDicense = ""; //驾驶证副页
      this.QualificationCertificate = ""; //从业资格证
      this.headPortrait = ""; //头像
      this.age = ""; //年龄
      this.DrivingAge = ""; //驾龄
      this.IDCardNo = ""; //身份证号码
      this.QualificationCe = ""; //资格证号
      if (value === this.DriverDetailsModal) {
        return;
      }
      this.DriverDetailsModal = value;
    },
    getAge(value) {
      if (value) {
        let birthdays = new Date(value);
        let d = new Date();
        let age =
          d.getFullYear() -
          birthdays.getFullYear() -
          (d.getMonth() < birthdays.getMonth() ||
          (d.getMonth() == birthdays.getMonth() &&
            d.getDate() < birthdays.getDate())
            ? 1
            : 0);
        return age;
      }
      return "";
    }, // 截取
    intercept(val) {
      if (val != null) {
        if (val.length >= 10) {
          let text1 = val.substring(0, 6);
          let text2 = val.substring(12);
          return `${text1}*****${text2}`;
        } else {
          return val;
        }
      } else {
        return (val = "");
      }
    },
    // 拼接照片
    MosaicPhotos(val) {
      let img =
        this.$baseUrl +
        "/freight/file/view/" +
        val +
        "?accessToken=" +
        this.accessToken +
        "&preview=true";
      return img;
    },
    // 获取数据
    getDataList() {
      this.spinShow = true;
      getDriverInformation({ userId: this.BidderdUserId }).then((res) => {
        this.spinShow = false;
        if (res.code == 200) {
          this.DriverInformationList = res.result;
          var time =
            this.DriverInformationList.birth.substring(0, 4) +
            "/" +
            this.DriverInformationList.birth.substring(4, 6) +
            "/" +
            this.DriverInformationList.birth.substring(6, 8);
          this.age = this.getAge(time);
          this.DrivingAge = this.getAge(this.DriverInformationList.issueDate);
          this.IDCardNo = this.intercept(this.DriverInformationList.num);
          this.QualificationCe = this.intercept(
            this.DriverInformationList.workLicenseNo
          );
          this.DriverInformationList.issueDates=this.issDate(
             this.DriverInformationList.issueDate
          )
          // this.$Message.success("操作成功");
          // idCardFontPicFileId 身份真正面
          // idCardBackPicFileId 身份真后面
          // driverFontPicFileId 驾驶证正面
          // driverBackPicFileId 驾驶证反面
          // workLicensePicFileId 从业则各种
          if (this.DriverInformationList.avatar) {
            if (this.DriverInformationList.avatar.indexOf(":") !== -1) {
              this.headPortrait = this.defaultAvatar;
            } else {
              this.headPortrait = this.MosaicPhotos(
                this.DriverInformationList.avatar
              );
            }
          } else {
            this.headPortrait = this.defaultAvatar;
          }

          if (this.DriverInformationList.idCardFontPicFileId != null) {
            this.FrontIDCardC = this.MosaicPhotos(
              this.DriverInformationList.idCardFontPicFileId
            );
          }
          if (this.DriverInformationList.idCardBackPicFileId != null) {
            this.ReverseSideIDSard = this.MosaicPhotos(
              this.DriverInformationList.idCardBackPicFileId
            );
          }
          if (this.DriverInformationList.driverFontPicFileId != null) {
            this.FrontDriverLicense = this.MosaicPhotos(
              this.DriverInformationList.driverFontPicFileId
            );
          }
          if (this.DriverInformationList.driverBackPicFileId != null) {
            this.ReverseSideDriverDicense = this.MosaicPhotos(
              this.DriverInformationList.driverBackPicFileId
            );
          }
          if (this.DriverInformationList.workLicensePicFileId != null) {
            this.QualificationCertificate = this.MosaicPhotos(
              this.DriverInformationList.workLicensePicFileId
            );
          }
          if (this.DriverInformationList.workBackLicensePicFileId != null) {
            this.workBackLicensePicFileIdImg = this.MosaicPhotos(
              this.DriverInformationList.workBackLicensePicFileId
            );
          }
        } else {
          this.$Message.error(res.message);
        }
      });
    },
   issDate(val){
     let text = "";
      if (val) {
        let arr = val.split("");
        arr.forEach((item) => {
          if (item == "-") {
          } else {
            text += item;
          }
        });
      }
      return text;
   },
    // 收到评价
    receivedEvaluation() {
      this.searchForm.userId = this.BidderdUserId;
      evaluateList(this.searchForm).then((res) => {
        if (res.result.records.length > 0) {
          this.receivedEvaluationData = res.result.records;
          this.receivedEvaluationTable = res.result.total;
        } else {
          this.receivedEvaluationData = [];
        }
      });
    },
    // 收到投诉
    receiveComplaints() {
      this.searchForm.userId = this.BidderdUserId;
      complaintList(this.searchForm).then((res) => {
        if (res.result.records.length > 0) {
          this.receiveComplaintsData = res.result.records;
          this.receiveComplaintsTabl = res.result.total;
        } else {
          this.receiveComplaintsData = [];
        }
      });
    },
    showPic(v) {
      let image = new Image();
      image.src = v;
      let viewer = new Viewer(image, {
        hidden: function () {
          viewer.destroy();
        },
      });
      viewer.show();
    },
    // 收到评价
    changePage(v) {
      this.searchForm.pageNumber = v;
      this.receivedEvaluation();
    },
    changePageSize(v) {
      this.searchForm.pageSize = v;
      this.receivedEvaluation();
    },
    // 收到投诉
    receiveChangePage(v) {
      this.searchForm.pageNumberEvaluation = v;
      this.receiveComplaints();
    },
    receiveChangePageSize(v) {
      this.searchForm.pageSizeComplaints = v;
      this.receiveComplaints();
    },
  },
  mounted() {},
  created() {},
};
</script>

<style lang="less">
.listDriver {
  .ivu-list-small .ivu-list-item {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}
.my-content {
  width: 100px;
}
.my-limitation {
  width: 170px;
}
.Line {
  // border-bottom: 1px solid #eee;
  // border-bottom-color: rgb(255, 255, 255);
  border: 0;
  border-top: 1px solid #eee;
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: rgb(238, 238, 238);
  border-bottom: 1px solid #fff;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: rgb(255, 255, 255);
  margin: 20px 0;
}
.listDriver {
  margin-top: 15px;
  // margin-left: 30px;
  .listDriverspan {
    text-align: right;
    width: 100px;
    color: #999;
  }
  .listDriverval {
    margin-left: 15px;
  }
}
.Owner {
  margin-left: 20px;
  // height: 80px;
  display: flex;
  .Ownerportrait {
    width: 60px;
    height: 60px;
    img {
      margin-top: 20px;
      width: 100%;
      height: 100%;
    }
  }
  .OwnerName {
    margin-left: 17px;
    padding: 25px 0;
    .OwnerName1 {
      margin-left: 10px;
      color: #999999;
    }
    .Owner-company {
      margin-top: 10px;
      cursor: pointer;
    }
  }
}
.ReasonRejection {
  color: #08c;
  margin-left: -600px;
  padding: 25px 0;
  margin-top: 20px;
}
.ReasonsFailureAudit {
  color: red;
}
.Ownertiem {
  padding: 25px 0;
  margin-top: 2px;
  .statee,
  .implemented,
  .end,
  .refuse,
  .AuditFailed,
  .quotation,
  .deeltes {
    width: 50px;
    margin-bottom: 10px;
    background-color: rgb(70, 136, 71);
    color: #fff;
    // line-height: 55px;
    padding: 2px 0;
    text-align: center;
    font-size: 12px;
    margin-left: 9px;
    border-radius: 3px;
    display: inline-block;
    margin-left: 103px;
  }
  .quotation {
    background-color: rgb(70, 136, 71);
  }
  .implemented {
    background-color: #2d8cf0;
  }
  .deeltes {
    background-color: #d3d3d3;
  }
  .AuditFailed {
    background-color: #dc143c;
    width: 70px;
    margin-left: 83px;
  }
}
.CarrierSource {
  width: 70px;
  margin-bottom: 10px;
  background-color: #808080;
  color: #fff;
  // line-height: 55px;
  padding: 2px 0;
  text-align: center;
  font-size: 12px;
  margin-left: 25px;
  border-radius: 3px;
  display: inline-block;
}
.butTable {
  width: 100%;
  padding: 5px;
  // border: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  // background-color: #f8f8f9;
  .butTableoffer {
    font-size: 16px;
    font-weight: 700;
    margin-top: 5px;
    margin-left: 5px;
    font-size: 16px;
    margin-bottom: 6px;
    span {
      font-size: 14px;
      font-weight: 400;
      // color: #909399;
    }
  }
}
.Cardokbtn {
  position: relative;
  bottom: -5px;
  left: 0;
}
.okbtn {
  z-index: 99999;
  width: 100%;
  margin-top: -15px;
  background-color: #f5f5f5;
  border: 1px solid #cdcdcd;
  height: 70px;
  line-height: 70px;
}
.DriverheaModalBox {
  padding: 0 5px;
  overflow: auto;
  height: 32rem;
  .Driverhead {
    // margin-top: 1rem;
    display: flex;
    border-bottom: 2px solid #eee;
    //  justify-content:space-between;
    .headPorit {
      margin-left: 1.8rem;
      width: 50px;
      height: 50px;
      margin-top: 1rem;
      // border: 1px solid #eee;
      border-radius: 50%;
      img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
      }
    }
    .Driverheadcompany {
      width: 300px;
      margin-left: 1rem;
      font-size: 14px;
      font-weight: normal;
      .Driverheadcompanyfont {
        margin-top: 23px;
      }
      .headcRate {
        .ivu-rate-star {
          width: 8px;
          height: 8px;
        }
      }
    }
    .Driverheadbtn {
      width: 80px;
      padding: 5px;
      margin-left: 22.3rem;
      display: inline-block;
      // background: #19be6b;
      // color: #fff;
      font-size: 10px;
      text-align: center;
      margin-top: 30px;
      margin-bottom: 30px;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      border-radius: 5px;
      height: 28px;
    }
  }
  .headdetails {
    margin: 10px 0;
  }
}
.Driverheadl {
  margin: 10px 0;
  display: flex;
  .Driverheadlfontsiz {
    margin-left: 2rem;
  }
  .Driverheadldiv {
    display: flex;
  }
  .Driverheadlimg {
    margin-left: 2.4rem;
    width: 125px;
    height: 80px;
    padding: 2px;
    border: 1px solid #eee;
    cursor: pointer;
    img {
      width: 100%;
      height: 100%;
    }
  }

  .Driverheadlbnt {
    margin-left: 2.4rem;
    margin-top: 5px;
    font-size: 14px;
    margin-bottom: 6px;
  }
  .complaintTabs {
    margin-top: 10px;
    display: flex;
  }
}
.BoxLine {
  content: "";
  width: 10px;
  height: 10px;
  // border-bottom: 1px solid #eee;
  position: absolute;
  top: 22px;
  right: -10px;
}
// .BoxLineanf::after {
//   content: "";
//   width: 10px;
//   height: 10px;
//   border-bottom: 1px solid #dcdee2;
//   position: absolute;
//   top: 22px;
//   right: -10px;
// }
.ListItemcss {
  height: 200px;
  overflow: auto;
}
.ListItemMetacss {
  margin-left: 40px;
}
.ListItemMetac1 {
  width: 350px;
  margin-left: 110px;
  color: #999999;
  font-size: 10px;
}
.el-descriptions__header {
  margin-bottom: 10px;
}
.NotFilled {
  font-size: 14px;
  color: #a9a9a9;
}
.LengthvehicleType {
  width: 250px;
  // white-space: nowrap;
  // overflow: hidden;
  // text-overflow: ellipsis;
}

.cummet-css {
  margin-top: 20px;
  margin-left: 1.5rem;
}
.comment-img {
  margin-left: 20px;
  display: flex;
}
.ivu-rate-star {
  width: 8px;
  height: 8px;
}
.page {
  margin-top: 10px;
}
.Modal-zindex {
  .ivu-modal-wrap,
  .ivu-modal-mask {
    z-index: 2000 !important;
  }
}
</style>
